<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<!--头部导航-->
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" th:fragment="navbar">
    <style>
        body{
            min-height: 900px;
        }
    </style>
    <a class="navbar-brand" href="#" th:href="@{/}">邱道长</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item" th:each="obj:${categories}">
                <a class="nav-link"  href="#" th:href="@{'/category/get/' + ${obj.categoryId}}" th:text="${obj.name}"></a>
            </li>
            <li class="nav-item">
                <a th:href="@{/aboutme}" class="nav-link">关于我</a>
            </li>
        </ul>
        <form class="form-inline my-2 my-lg-0" id="searchForm" th:action="@{/article/search}">
            <input class="form-control mr-sm-2" id="search" type="search" name="search" placeholder="搜索内容..." aria-label="Search">
            <input class="btn btn-outline-success my-2 my-sm-0" id="searchBtn" type="button" th:value="道一下">
        </form>
    </div>
</nav>